<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.88.1">
    <title>Signin Template · Bootstrap v5.1</title>

    <!-- 新 Bootstrap5 核心 CSS 文件 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>

  </head>
  <body class="text-center">

<main class="form-signin">
  <h1 class="h3 mb-3 fw-normal">欢迎注册</h1>
  <p th:if="${register_fail}" style="color: red">注册失败!</p>
  <form th:action="@{register}" method="post">

    <div class="form-floating">
      <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名">
      <label for="username">用户名</label>
    </div>
    <div class="form-floating">
      <input type="password" class="form-control" id="email" name="email" placeholder="请输入密码">
      <label for="password">邮箱</label>
    </div>
    <div class="form-floating">
      <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
      <label for="password">密码</label>
    </div>


    <button class="w-100 btn btn-lg btn-primary" type="submit">注册</button>

  </form>
</main>


    
  </body>
</html>
